<template>
  <div class="home">
    <!-- 头部 -->
    <div class="home-header">
      <i class="iconfont icon-wode2"></i>
      <h4>首页</h4>
      <!-- 点击登录 -->
      <router-link to="/login">
        <button>点击登录</button>
      </router-link>
    </div>
    <div class="container-wrap">
      <Swipe></Swipe>
    </div>
  </div>
</template>

<script>
import Swipe from "@/components/Swipe/Swipe.vue";
export default {
  components: {
    Swipe,
  },
};
</script>
<style lang="less">
.home {
  .home-header {
    width: 100%;
    height: 3rem;
    background-color: #999;
    border-bottom: 1px solid #333;
    position: fixed;
    left: 0;
    top: 0;
    i {
      font-size: 1.6rem;
      margin-left: 2rem;
      line-height: 3rem;
    }
    h4 {
      display: inline-block;
      line-height: 3rem;
      margin-left: 7rem;
    }
    button {
      width: 5rem;
      height: 2rem;
      background-color: skyblue;
      margin-left: 5rem;
    }
  }
}
</style>